@echo off
echo Running build process...

echo Building project...
call npm run build

echo Removing old Docker container...
call docker rm -f information-retrieval-contest-ui

echo Removing old Docker image...
call docker rmi information-retrieval-contest-ui:latest

echo Building new Docker image...
call docker build -t information-retrieval-contest-ui .

echo Running Docker container...
call docker run -d -p 10001:80 --name information-retrieval-contest-ui information-retrieval-contest-ui

echo Done.